~<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>作业1</title>
    <script type="text/javascript">
    //提示信息
    function ShowMsg(dug){
        alert(dug);
    }
    //确认信息
    function ShowConfirm(elr){
        confirm(elr);
    }
    //输入信息
    function ShowPromat(lak){
        return prompt(lak);
    }
    </script>
</head>
<body>
    <input type="button" value="提示消息" onclick="ShowMsg('我想到世界各地走一走！！')">
    <input type="button" value="确认消息" onclick="ShowConfirm('看一看世界的风采！！')">
    <input type="button" value="输入消息" onclick="ShowPromat('留点足迹在世界！！')">
</body>
</html>